package cn.leyaber.hrm.clients;



import cn.leyaber.hrm.fallback.UserFeignClientFallbackFactory;
import cn.leyaber.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

//系统管理的Feign接口
@Service
@FeignClient(value = "USER-SERVER",fallbackFactory = UserFeignClientFallbackFactory.class )
public interface UserFeignClient {

    //查询用户的权限列表
    @RequestMapping(value="/permission/getByLoginId/{id}",method= RequestMethod.GET)
    AjaxResult getByLoginId(@PathVariable Long id);
}
